Fortran do...while循环结构 |
您所在的位置:网站首页 › fortran 双冒号 › Fortran do...while循环结构 |
它重复语句或一组语句,当给定的条件为真。它测试的条件执行在循环体之前。 语法 do while (logical expr) statements end do流程图 ![]() 示例 program factorial implicit none ! define variables integer :: nfact = 1 integer :: n = 1 ! compute factorials do while (n |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |